﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace MSpecLauncher.Services
{
    /// <summary>
    /// Timer that executes a callback in a different thread
    /// </summary>
    public interface IAsyncTimer
    {
        /// <summary>
        /// Starts the timer with the given callback
        /// </summary>
        void Start(Action<object> callback, object prm);

        /// <summary>
        /// Stops the timer
        /// </summary>
        void Stop();

        /// <summary>
        /// Gets if the timer is started
        /// </summary>
        bool IsStarted { get; }
    }
}
